import { ILogin, IUser } from "@/interface";
import { request } from "@/utils";

export function login(data: ILogin) {
  return request<IUser>({ 
    url: "/api/userLogin", 
    method: "post",
     data 
    })
}
export function logout(){
  return request({ 
    url: "api/userLogout", 
    method: "post",
    })
}